home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume4 / se / part7 < prev    next >
Encoding:
Internet Message Format  |  1986-11-30  |  33.0 KB

  1. From: Jeff Lee <talcott!seismo!gatech!jeff>
  2. Subject: Georgia Tech 'se' screen editor (Part 7 of 8)
  3. Keywords: Software Tools, Yet Another Screen Editor, Both BSD and USG
  4. Newsgroups: mod.sources
  5. Approved: jpn@panda.UUCP
  6.  
  7. Mod.sources:  Volume 4, Issue 88
  8. Submitted by: Jeff Lee <seismo!gatech!jeff>
  9.  
  10. #! /bin/sh
  11. # This is a shell archive, meaning:
  12. # 1. Remove everything above the #! /bin/sh line.
  13. # 2. Save the resulting text in a file.
  14. # 3. Execute the file with /bin/sh (not csh) to create:
  15. #    Install
  16. #    Makefile
  17. #    README
  18. #    a
  19. #    abt
  20. #    ah
  21. #    ah_swt
  22. #    arg2
  23. #    args
  24. #    b
  25. #    bang
  26. #    bug
  27. #    c
  28. #    cc
  29. #    ccmisc
  30. #    chardel
  31. #    charins
  32. #    colon
  33. #    com
  34. #    com_swt
  35. #    comdir
  36. #    comdir_swt
  37. #    comsyn
  38. #    d
  39. #    detab.c
  40. #    dir
  41. #    e
  42. #    eh
  43. #    elp
  44. #    equal
  45. #    f
  46. #    g
  47. #    h
  48. #    i
  49. #    j
  50. #    k
  51. #    l
  52. #    list
  53. #    ln
  54. #    ln_swt
  55. #    m
  56. #    m_swt
  57. #    motion
  58. # This archive created: Tue Apr 29 10:46:46 1986
  59. export PATH; PATH=/bin:/usr/bin:$PATH
  60. ######
  61. # the following added by hand since the help files were too big
  62. if test ! -d 'se_h'
  63. then
  64.     echo shar: "creating directory 'se_h'"
  65.     mkdir 'se_h'
  66. fi
  67. echo shar: "entering directory 'se_h'"
  68. cd se_h
  69. ######
  70. echo shar: "extracting 'Install'" '(278 characters)'
  71. if test -f 'Install'
  72. then
  73.     echo shar: "will not over-write existing file 'Install'"
  74. else
  75. cat << \SHAR_EOF > 'Install'
  76. #! /bin/sh
  77. : Install -- put se help files into their proper directory.
  78. :         This program is called from the makefile.
  79.  
  80. INSTALL=$1
  81. shift
  82. umask 022
  83.  
  84. for i in $*
  85. do
  86.     echo installing $i
  87.     detab < $i > $INSTALL/$i
  88. done
  89.  
  90. : we really should do some error checking, but what the heck.
  91. SHAR_EOF
  92. chmod +x 'Install'
  93. fi
  94. echo shar: "extracting 'Makefile'" '(936 characters)'
  95. if test -f 'Makefile'
  96. then
  97.     echo shar: "will not over-write existing file 'Makefile'"
  98. else
  99. cat << \SHAR_EOF > 'Makefile'
  100. # makefile for se help scripts
  101.  
  102. DOCS= README
  103.  
  104. FILES= a abt ah arg2 args b bang bug c cc ccmisc chardel charins colon \
  105.     com com_swt comdir comdir_swt comsyn d dir e eh elp equal f g h i \
  106.     j k l list ln ln_swt m m_swt motion n o o- oa oc od of og oh oi ok ol \
  107.     olm om op os ot ou ov ow ox oy oz p pat pat_swt patex patex_swt q \
  108.     quote r rpt s s_swt scan scan_swt serc shell shell_swt specl t t_swt \
  109.     termchar tilde u v w x y y_swt z
  110.  
  111. # destination for final    version    of help    scripts.
  112. INSTALL=/usr/local/lib/se_h
  113.  
  114. install: existsall detab
  115.     Install $(INSTALL) $(FILES)
  116.  
  117. existsall: $(FILES) $(DOCS) Install
  118.     @echo this message indicates all the files exist, otherwise make would die.
  119.  
  120. detab: detab.c
  121.     cc -O -o detab detab.c
  122.  
  123. clean:
  124.     rm -f detab print2
  125.  
  126. clobber: clean
  127.  
  128.  
  129. print:
  130.     prt $(DOCS) Makefile Install $(FILES) | lpr -b 'se help'
  131.     touch print2
  132.  
  133. print2:    $(DOCS)    Makefile Install $(FILES)
  134.     prt $? | lpr -b    'new se    help'
  135.     touch print2
  136. SHAR_EOF
  137. fi
  138. echo shar: "extracting 'README'" '(878 characters)'
  139. if test -f 'README'
  140. then
  141.     echo shar: "will not over-write existing file 'README'"
  142. else
  143. cat << \SHAR_EOF > 'README'
  144. README:
  145.  
  146. This directory contains the help files for the Georgia Tech Software Tools/UNIX
  147. screen editor Se.  The files with the _swt suffix contain information
  148. which is correct when the editor is in Software Tools compatibility mode.
  149. This is the default at Georgia Tech.  The files without the _swt suffix either
  150. contain information which is the same for both Unix and SWT modes, or for
  151. Unix mode, which is the default at any place other than Georgia Tech.
  152.  
  153. The dohelp() routine checks what mode the editor is in, and reads in the
  154. appropriate file.
  155.  
  156. The files should be installed in the directory /usr/lib/se_h for se in order
  157. for se to find them. File names must be in lower case, since dohelp() maps
  158. the file name into all lower case. (On pr1mes, case is not significant in
  159. file names, so the original ratfor version did not have to do this.)
  160.  
  161. Arnold Robbins
  162. Georgia Tech
  163. 2/84
  164. SHAR_EOF
  165. fi
  166. echo shar: "extracting 'a'" '(793 characters)'
  167. if test -f 'a'
  168. then
  169.     echo shar: "will not over-write existing file 'a'"
  170. else
  171. cat << \SHAR_EOF > 'a'
  172.          a    -- Append command
  173.  
  174.               default range           syntax
  175.                           .           a
  176.  
  177.         "a" is for appending new lines of text after a given line.  If
  178.         no line number is typed before the "a", text will be  appended
  179.         after  the  current  line.  The last line appended becomes the
  180.         current line.  To signal the end of  the  appended  text,  you
  181.         type a "."  on a line by itself.  Control characters "f", "v",
  182.         "l",  and  "k"  work differently for "a" command than for "v".
  183.         "a:"  works as a one line append (i.e. anything following  the
  184.         colon is appended after the current line).
  185.  
  186.         To return to the command directory, type "hcomdir."
  187.         See also:  "hcc" (control characters) and "hc" (change).
  188. SHAR_EOF
  189. fi
  190. echo shar: "extracting 'abt'" '(599 characters)'
  191. if test -f 'abt'
  192. then
  193.     echo shar: "will not over-write existing file 'abt'"
  194. else
  195. cat << \SHAR_EOF > 'abt'
  196.                                Abort character                                
  197.  
  198.         CTRL-F ("Funny Return") character  is  used  to  abort  a  "v"
  199.         command  before  all  the  specified lines have been modified.
  200.         Typing it causes the current line to be restored to its  state
  201.         of  before  the  "v" command was begun, and causes a return to
  202.         the editor's command level.
  203.  
  204.  
  205.         Type "hv" for a description of the "v" command.
  206.         Type "hrpt" for CTRL-F's meaning if in append or command mode.
  207.         Type "htermchar" for info about other termination characters.
  208. SHAR_EOF
  209. fi
  210. echo shar: "extracting 'ah'" '(142 characters)'
  211. if test -f 'ah'
  212. then
  213.     echo shar: "will not over-write existing file 'ah'"
  214. else
  215. cat << \SHAR_EOF > 'ah'
  216.  
  217.           If you're running Berkeley Unix, and you're bored
  218.           Type the following command for something enjoyable:
  219.  
  220.           !rogue
  221.  
  222. SHAR_EOF
  223. fi
  224. echo shar: "extracting 'ah_swt'" '(143 characters)'
  225. if test -f 'ah_swt'
  226. then
  227.     echo shar: "will not over-write existing file 'ah_swt'"
  228. else
  229. cat << \SHAR_EOF > 'ah_swt'
  230.  
  231.  
  232.           If you're running Berkeley Unix, and you're bored
  233.           Type the following command for something enjoyable:
  234.  
  235.           ~rogue
  236.  
  237. SHAR_EOF
  238. fi
  239. echo shar: "extracting 'arg2'" '(917 characters)'
  240. if test -f 'arg2'
  241. then
  242.     echo shar: "will not over-write existing file 'arg2'"
  243. else
  244. cat << \SHAR_EOF > 'arg2'
  245.                                Arguments (cont)
  246.  
  247.         Once the terminal type  is  established,  the  remaining  arg-
  248.         uments  are  interpreted  thus:  if the argument begins with a
  249.         "-", the rest of it is interpreted as though it appeared after
  250.         the "o" in an option command.  For  example,  an  argument  of
  251.         "-w10"  acts  as  a command "ow10".  On the other hand, if the
  252.         argument does not begin with "-", it is interpreted as a  file
  253.         name  (path-  name).   The  named  file  is read into the edit
  254.         buffer, and its name becomes the  remembered  file  name.   If
  255.         more  than one file is named, the edit buffer will contain the
  256.         contents of all the files.  If  an  error is encountered while
  257.         interpreting arguments (file not found, illegal  option),  the
  258.         remainder will be ignored.
  259.  
  260.         For invoking command syntax, type "hargs".
  261. SHAR_EOF
  262. fi
  263. echo shar: "extracting 'args'" '(425 characters)'
  264. if test -f 'args'
  265. then
  266.     echo shar: "will not over-write existing file 'args'"
  267. else
  268. cat << \SHAR_EOF > 'args'
  269.                               Argument Handling
  270.  
  271.         The syntax for 'se's invoking command is usually given as
  272.             se {-<option> | <pathname>}
  273.         It is suggested  that  you  set up a command  file  that  will
  274.         automatically invoke 'se' with the options that you like.
  275.  
  276.         To see how the remaining arguments are treated, type "harg2".
  277.         To return to the general help directory, type "hdir".
  278. SHAR_EOF
  279. fi
  280. echo shar: "extracting 'b'" '(100 characters)'
  281. if test -f 'b'
  282. then
  283.     echo shar: "will not over-write existing file 'b'"
  284. else
  285. cat << \SHAR_EOF > 'b'
  286.  
  287.  
  288.  
  289.                There is no "b" command.
  290.    To return to the command directory, type "hcomdir."
  291.  
  292.  
  293. SHAR_EOF
  294. fi
  295. echo shar: "extracting 'bang'" '(350 characters)'
  296. if test -f 'bang'
  297. then
  298.     echo shar: "will not over-write existing file 'bang'"
  299. else
  300. cat << \SHAR_EOF > 'bang'
  301.  
  302.  
  303.         ! --- exclude on markname
  304.  
  305.         default range                   syntax
  306.           1,$                             !<m>command
  307.         
  308.         Similar to the "x" prefix, except that  "command" is performed
  309.         for all lines in the range that do not have the mark name <m>.
  310.  
  311.         To return to the command directory, type "hcomdir".
  312. SHAR_EOF
  313. fi
  314. echo shar: "extracting 'bug'" '(413 characters)'
  315. if test -f 'bug'
  316. then
  317.     echo shar: "will not over-write existing file 'bug'"
  318. else
  319. cat << \SHAR_EOF > 'bug'
  320.  
  321.             There is a limit (MAXLINE - 2) on the number of characters
  322.         in a line. Se's MAXLINE is currently 512, so this isn't too much
  323.         of a problem.
  324.             If a filename is absent when invoked, all of the
  325.         options are not processed.
  326.  
  327.  
  328.         To go all the way back to the general help display, type "h".    
  329.         To go back to the general help directory, type "hdir."           
  330. SHAR_EOF
  331. fi
  332. echo shar: "extracting 'c'" '(619 characters)'
  333. if test -f 'c'
  334. then
  335.     echo shar: "will not over-write existing file 'c'"
  336. else
  337. cat << \SHAR_EOF > 'c'
  338.           c    -- Change command
  339.  
  340.                default range           syntax
  341.                     .,.                  c
  342.  
  343.         "c"  first  deletes  the range of lines determined by the line
  344.         numbers (default ".,."), then enters append mode so  that  you
  345.         can  type  lines to replace the deleted lines.  Append mode is
  346.         terminated with a dot on a line by itself, as with the  Append
  347.         command. "c:" works as a one line change (i.e. what  is  after
  348.         the colon replaces the current line).
  349.  
  350.         To return to the command directory, type "hcomdir."
  351.         See also   "ha" and "hd"
  352. SHAR_EOF
  353. fi
  354. echo shar: "extracting 'cc'" '(747 characters)'
  355. if test -f 'cc'
  356. then
  357.     echo shar: "will not over-write existing file 'cc'"
  358. else
  359. cat << \SHAR_EOF > 'cc'
  360.  
  361.         Control characters can be used for correcting typing mistakes,
  362.         for correcting commands that have incurred an error message,
  363.         or for editing the edit buffer ("inline editing") via the "v"
  364.         command.  The novice should be told right away that hitting
  365.         the DEL or RUBOUT key is a way to erase an erroneous command.
  366.  
  367.         General Help Directory. . . . . . . . . . . . . . hdir
  368.         Other Control Characters. . . . . . . . . . . . . hccmisc
  369.         Character Insertion Control Characters. . . . . . hcharins
  370.         Termination Control Characters. . . . . . . . . . htermchar
  371.         Character Deletion Control Characters . . . . . . hchardel
  372.         Cursor Motion Control Characters. . . . . . . . . hmotion
  373. SHAR_EOF
  374. fi
  375. echo shar: "extracting 'ccmisc'" '(415 characters)'
  376. if test -f 'ccmisc'
  377. then
  378.     echo shar: "will not over-write existing file 'ccmisc'"
  379. else
  380. cat << \SHAR_EOF > 'ccmisc'
  381.                        Miscellaneous Control Characters
  382.  
  383.          CTRL-Z toggles an indicator that acts as a "shift lock",
  384.          controlling case mapping on alphabetics typed.
  385.  
  386.          CTRL-Q signals the editor that you suspect that for some
  387.          reason the screen is garbaged.  The response is to clear and
  388.          restore the screen.
  389.  
  390.  
  391.          Type "hcc" to get back to the control character directory.
  392. SHAR_EOF
  393. fi
  394. echo shar: "extracting 'chardel'" '(481 characters)'
  395. if test -f 'chardel'
  396. then
  397.     echo shar: "will not over-write existing file 'chardel'"
  398. else
  399. cat << \SHAR_EOF > 'chardel'
  400.                     Character Deletion Control Characters
  401.         Gobble one character
  402.           to left of cursor          CTRL-U
  403.           at cursor                  CTRL-R
  404.         Gobble all characters
  405.           to left of cursor          CTRL-Y
  406.           at and to right of cursor  CTRL-T
  407.           on entire line             DEL (a. k. a. RUBOUT)
  408.  
  409.  
  410.         "hdir" gets you back to the general help directory.
  411.         Type "hcc" to get back to the control character directory.
  412. SHAR_EOF
  413. fi
  414. echo shar: "extracting 'charins'" '(620 characters)'
  415. if test -f 'charins'
  416. then
  417.     echo shar: "will not over-write existing file 'charins'"
  418. else
  419. cat << \SHAR_EOF > 'charins'
  420.                     Character Insertion Control Characters
  421.  
  422.         CTRL-C inserts a blank at the cursor position.
  423.         CTRL-X inserts blanks to the next tab stop at the cursor position.
  424.         CTRL-A toggles Insert Mode.
  425.  
  426.         When Insert Mode is in effect, any printing character typed is
  427.         inserted into the line, with characters at and to the right of
  428.         the cursor moving over to make room.  When Insert Mode is  not
  429.         in effect, any printing character typed will replace (overlay)
  430.         the character at the cursor.
  431.  
  432.  
  433.         To return to the directory of control characters, type "hcc".
  434. SHAR_EOF
  435. fi
  436. echo shar: "extracting 'colon'" '(355 characters)'
  437. if test -f 'colon'
  438. then
  439.     echo shar: "will not over-write existing file 'colon'"
  440. else
  441. cat << \SHAR_EOF > 'colon'
  442.          :    -- Page command
  443.  
  444.               default range           syntax
  445.                     .                 :
  446.  
  447.       ":" is for paging the active area one page (n-1 lines)
  448.       forward.
  449.  
  450.  
  451.        For paging backward, see "hp"
  452.        See also:  "hcc" (control characters) and "hc" (change).
  453.        To return to the command directory, type "hcomdir."
  454. SHAR_EOF
  455. fi
  456. echo shar: "extracting 'com'" '(589 characters)'
  457. if test -f 'com'
  458. then
  459.     echo shar: "will not over-write existing file 'com'"
  460. else
  461. cat << \SHAR_EOF > 'com'
  462.                                    Commands
  463.                                                                          
  464.         When  the "cmd>" prompt appears near the bottom of the screen,
  465.         a command may be typed.  Commands work for the most  part  the
  466.         same way as commands to 'ed', the Unix system text editor with
  467.         which you may be familiar.
  468.  
  469.           To return to the general help directory, type "hdir".          
  470.           For information about specific commands, type "hcomdir".       
  471.           For details on command syntax, type "hcomsyn".                 
  472. SHAR_EOF
  473. fi
  474. echo shar: "extracting 'com_swt'" '(604 characters)'
  475. if test -f 'com_swt'
  476. then
  477.     echo shar: "will not over-write existing file 'com_swt'"
  478. else
  479. cat << \SHAR_EOF > 'com_swt'
  480.                                    Commands
  481.                                                                          
  482.         When  the "cmd>" prompt appears near the  bottom of the screen,
  483.         a command may be typed.  Commands work  for the most  part  the
  484.         same way as commands to 'ed', the Software Tools Subsystem text
  485.         editor with which you may be familiar.
  486.  
  487.           To return to the general help directory, type "hdir".          
  488.           For information about specific commands, type "hcomdir".       
  489.           For details on command syntax, type "hcomsyn".                 
  490. SHAR_EOF
  491. fi
  492. echo shar: "extracting 'comdir'" '(819 characters)'
  493. if test -f 'comdir'
  494. then
  495.     echo shar: "will not over-write existing file 'comdir'"
  496. else
  497. cat << \SHAR_EOF > 'comdir'
  498.  
  499.                               Command Directory
  500.  
  501.         The following are the full names of one-letter commands
  502.         Append            Change   Delete   Enter    File     Global
  503.         Help     Insert   Join     marK     Locate   Move     Name
  504.         Option   Page     Quit     Read     Substitute        To
  505.         Undelete oVerlay  Write    eXclude  translYterate
  506.  
  507.         For info about one of these commands, type "h" followed by
  508.         whichever letter is capitalized in the command name above.
  509.  
  510.         Other commands and their help commands are:
  511.             print value   hequal        global on mark   hquote
  512.             miscellany    hz            exclude on mark  htilde
  513.             shell escape  hshell        .serc file       hserc
  514.  
  515.         There are still more commands; to see them type "hspecl".
  516. SHAR_EOF
  517. fi
  518. echo shar: "extracting 'comdir_swt'" '(811 characters)'
  519. if test -f 'comdir_swt'
  520. then
  521.     echo shar: "will not over-write existing file 'comdir_swt'"
  522. else
  523. cat << \SHAR_EOF > 'comdir_swt'
  524.  
  525.                               Command Directory
  526.  
  527.         The following are the full names of one-letter commands
  528.         Append   copY     Change   Delete   Enter    File     Global
  529.         Help     Insert   Join     marK     Locate   Move     Name
  530.         Option   Page     Quit     Read     Substitute
  531.         Transliterate     Undelete oVerlay  Write    eXclude
  532.  
  533.         For info about one of these commands, type "h" followed by
  534.         whichever letter is capitalized in the command name above.
  535.  
  536.         Other commands and their help commands are:
  537.             print value   hequal        global on mark   hquote
  538.             miscellany    hz            exclude on mark  hbang
  539.             shell escape  hshell        .serc file       hserc
  540.  
  541.         There are still more commands; to see them type "hspecl".
  542. SHAR_EOF
  543. fi
  544. echo shar: "extracting 'comsyn'" '(722 characters)'
  545. if test -f 'comsyn'
  546. then
  547.     echo shar: "will not over-write existing file 'comsyn'"
  548. else
  549. cat << \SHAR_EOF > 'comsyn'
  550.                                 Command Syntax
  551.  
  552.         A command consists  of  an  optional  list  of  LINE  NUMBERS,
  553.         followed  by a COMMAND LETTER, possibly followed by parameters
  554.         allowed or required for a specific  command.   Preceeding  all
  555.         this,  there  can be a GLOBAL PREFIX preceeded optionally by a
  556.         list  of  line   numbers.   Hence   the   whole   syntax   is:
  557.  
  558.         [[<list>]<global prefix>][<list>]<command letter>[<stuff>]
  559.  
  560.         For general information about commands, type "hcom".
  561.         For information about specific commands, type "hcomdir".
  562.         For GLOBAL PREFIX syntax and semantics, type "hg".
  563.         For LINE NUMBER LIST syntax and semantics, type "hlist".
  564. SHAR_EOF
  565. fi
  566. echo shar: "extracting 'd'" '(614 characters)'
  567. if test -f 'd'
  568. then
  569.     echo shar: "will not over-write existing file 'd'"
  570. else
  571. cat << \SHAR_EOF > 'd'
  572.         d    -- Delete command
  573.  
  574.                default range           syntax
  575.                          .,.           d
  576.  
  577.         "d"  is  used  to  delete  lines of text from the buffer.  The
  578.         lines in the range specified  by  the  line  number  list  are
  579.         deleted.   The  positioning  of the current line pointer after
  580.         execution of the "d" command is controlled by the "d"  option;
  581.         see  "hod".   The  normal  behavior  is to make the first line
  582.         AFTER the lines deleted the new current line.
  583.  
  584.         To return to the command directory, type "hcomdir."
  585.         See also "hod".
  586. SHAR_EOF
  587. fi
  588. echo shar: "extracting 'detab.c'" '(1188 characters)'
  589. if test -f 'detab.c'
  590. then
  591.     echo shar: "will not over-write existing file 'detab.c'"
  592. else
  593. cat << \SHAR_EOF > 'detab.c'
  594. /* Detab - convert tabs to appropriate number of spaces */
  595.  
  596. /* transcribed from Kernighan and Plaguer (Software Tools) */
  597. /* fixed up by Arnold Robbins */
  598.  
  599. #include <stdio.h>
  600.  
  601. #define MAXLINE         132
  602.  
  603. #define repeat          do
  604. #define until(x)        while(!(x))
  605.  
  606. #define tabpos(col, tabs)       ( (col > MAXLINE) ? 1 : tabs[col - 1])
  607.  
  608. main()
  609. {
  610.         int c, i, tabs[MAXLINE], col = 1;
  611.  
  612.         settabs(tabs);
  613.  
  614.         while ((c = getchar()) != EOF)
  615.                 switch(c) {
  616.                 case '\t':
  617.                         repeat
  618.                         {
  619.                                 putchar(' ');
  620.                                 col++;
  621.                         } until(tabpos(col, tabs));
  622.                         break;
  623.  
  624.                 case '\n':
  625.                         putchar('\n');
  626.                         col = 1;
  627.                         break;
  628.  
  629.                 default:
  630.                         putchar(c);
  631.                         col++;
  632.                         break;
  633.                 }
  634. }
  635.  
  636. settabs(tabs)
  637. int tabs[];
  638. {
  639.         int i;
  640.  
  641.         for(i = 1; i <= MAXLINE; i++)
  642.                 tabs[i - 1] = ((i % 8) == 1);
  643.                 /* result is either 1 or 0 */
  644. }
  645. SHAR_EOF
  646. fi
  647. echo shar: "extracting 'dir'" '(441 characters)'
  648. if test -f 'dir'
  649. then
  650.     echo shar: "will not over-write existing file 'dir'"
  651. else
  652. cat << \SHAR_EOF > 'dir'
  653.                                 HELP DIRECTORY
  654.  
  655.  
  656.         To go back to the general description, type        "h"
  657.         For info on the 'se' invoking command, type        "hargs"
  658.         For a discussion of commands,          type        "hcom"
  659.         For a description of 'se's problems,   type        "hbug"
  660.         To learn about control characters,     type        "hcc"
  661.         For info on options,                   type        "ho"
  662.  
  663. SHAR_EOF
  664. fi
  665. echo shar: "extracting 'e'" '(793 characters)'
  666. if test -f 'e'
  667. then
  668.     echo shar: "will not over-write existing file 'e'"
  669. else
  670. cat << \SHAR_EOF > 'e'
  671.           e    -- Enter command
  672.  
  673.                default range           syntax
  674.                          n/a           e[! | x] [file name]
  675.  
  676.         "e" prevents one from having to exit and reenter the editor to
  677.         edit  a  different file.  "e" empties the edit buffer, reads a
  678.         file, and resets the remembered file name.  If [file name]  is
  679.         omitted,  the  remembered  file  name is used.  [!] is used to
  680.         override a check made to prevent you from accidently losing  a
  681.         buffer that has not been saved (same as in "q"). [x]   is used
  682.         to turn tab expansion   on when reading the file in.  Se  will
  683.         expand environment variables that start with  $ in file names.
  684.  
  685.         To return to the command directory, type "hcomdir."
  686.         See also:  "hq"
  687. SHAR_EOF
  688. fi
  689. echo shar: "extracting 'eh'" '(318 characters)'
  690. if test -f 'eh'
  691. then
  692.     echo shar: "will not over-write existing file 'eh'"
  693. else
  694. cat << \SHAR_EOF > 'eh'
  695.     You are standing at the end of a road before a small brick building.
  696.     around you is a forest.  A small stream flows out of the building and
  697.     down a gully.
  698.  
  699.  
  700.     You are inside a building, a well house for a large spring.
  701.  
  702.     There are some keys on the ground here.
  703.  
  704.     There is a shiny brass lamp nearby.
  705.  
  706. SHAR_EOF
  707. fi
  708. echo shar: "extracting 'elp'" '(881 characters)'
  709. if test -f 'elp'
  710. then
  711.     echo shar: "will not over-write existing file 'elp'"
  712. else
  713. cat << \SHAR_EOF > 'elp'
  714.                                      Help
  715.  
  716.         You are using 'se', the  Georgia  Tech screen editor which  is
  717.         based upon the editor described in the book SOFTWARE TOOLS, by
  718.         Brian W.  Kernighan  and  P.   J.   Plauger   (Addison-Wesley,
  719.         1976).   The  screen-oriented  modifications (and some others)
  720.         are by  Jack  Waugh and  Perry  Flinn.  Dan Forsyth translated
  721.         the Ratfor into C.  Arnold Robbins modified the editor to  use
  722.         the Berkeley termlib library, making the editor terminal inde-
  723.         pendant.  Most of this  'help' is  courtesy  of Bob  Gordon of
  724.         Prime  Research, as  amended by  Arnold Robbins.  The descrip-
  725.         tion before you now  is  invoked by the  "h" (help) command.
  726.  
  727.         For a description of the 'help' command, type "hh".
  728.         Find out what the help command can tell you - type "hdir".
  729.  
  730.  
  731. SHAR_EOF
  732. fi
  733. echo shar: "extracting 'equal'" '(306 characters)'
  734. if test -f 'equal'
  735. then
  736.     echo shar: "will not over-write existing file 'equal'"
  737. else
  738. cat << \SHAR_EOF > 'equal'
  739.          =    -- Display Line Number command
  740.  
  741.               default range           syntax
  742.                    .                  =
  743.  
  744.       "=" is for determining the number of the current line
  745.       that you are editing.
  746.  
  747.  
  748.  
  749.        To return to the command directory, type "hcomdir."
  750.        See also:  "hoa"
  751. SHAR_EOF
  752. fi
  753. echo shar: "extracting 'f'" '(693 characters)'
  754. if test -f 'f'
  755. then
  756.     echo shar: "will not over-write existing file 'f'"
  757. else
  758. cat << \SHAR_EOF > 'f'
  759.         f -- File command
  760.  
  761.              default range              syntax
  762.                   n/a               f [file name]
  763.  
  764.         "f"  is  used to print or reset the name of the current file
  765.         being edited.  f [file name] resets the name for the current
  766.         file.  This filename is used by the "w", "e", and  "r"  com-
  767.         mands  when  no  parameters are provided.  f does not change
  768.         the "ok" toggle.  f with no parameters prints out the remem-
  769.         bered name.  In file names, Se will  expand  any  enviroment
  770.         variables that start with a $.
  771.  
  772.         To  return  to  the  command directory, type "hcomdir."  See
  773.         also:  "he", "hw", "hr", and "hok".
  774.  
  775. SHAR_EOF
  776. fi
  777. echo shar: "extracting 'g'" '(572 characters)'
  778. if test -f 'g'
  779. then
  780.     echo shar: "will not over-write existing file 'g'"
  781. else
  782. cat << \SHAR_EOF > 'g'
  783.           g    -- Global command
  784.  
  785.                default range           syntax
  786.                          1,$           g/pattern/command
  787.  
  788.         "g"  is  used  to perform an editing command on all lines that
  789.         match the "pattern".   "pattern"  is  any  legal  pattern  and
  790.         command is an editor command.  The "x" command is the converse
  791.         of "g" and performs the command on all lines that do not match
  792.         the pattern.  The "/" may be any character.
  793.  
  794.  
  795.         To return to the command directory, type "hcomdir."
  796.         See also:  "hx" and "hpat".
  797. SHAR_EOF
  798. fi
  799. echo shar: "extracting 'h'" '(531 characters)'
  800. if test -f 'h'
  801. then
  802.     echo shar: "will not over-write existing file 'h'"
  803. else
  804. cat << \SHAR_EOF > 'h'
  805.           h    -- Help command
  806.  
  807.                default range           syntax
  808.                          n/a           h[ null | parameter]
  809.  
  810.         Typing  "h"  followed  by any character  string simply displays
  811.         the  contents of the se help script of that name at the top  of
  812.         the  screen  (provided  the  script  exists).  The  scripts are
  813.         files in the directory '/usr/local/lib/se_h'. If the scriptname
  814.         is omitted, "elp" is assumed.
  815.  
  816.         To see a general directory of help scripts, type "hdir".
  817. SHAR_EOF
  818. fi
  819. echo shar: "extracting 'i'" '(850 characters)'
  820. if test -f 'i'
  821. then
  822.     echo shar: "will not over-write existing file 'i'"
  823. else
  824. cat << \SHAR_EOF > 'i'
  825.          i    -- Insert command
  826.  
  827.               default range           syntax
  828.                           .           i
  829.  
  830.         "i"  is  for  inserting new lines of text before a given line.
  831.         If no line number is  typed  before  the  "i",  text  will  be
  832.         inserted  before  the  current  line.   Lines  are continually
  833.         inserted before the original line, which has the  same  effect
  834.         as  append  does.  To signal the end of the inserted text, you
  835.         only need to type  a  "."   on  a  line  by  itself.   Control
  836.         characters  "f",  "v",  "l",  and "k" work differently for "i"
  837.         command than for "v". "i:" works as a one line insert, similar
  838.         to "a:".
  839.  
  840.         To return to the command directory, type "hcomdir."
  841.         See also:  "hcc" (control characters) and  "hc"  (change)  and
  842.         "ha".
  843. SHAR_EOF
  844. fi
  845. echo shar: "extracting 'j'" '(575 characters)'
  846. if test -f 'j'
  847. then
  848.     echo shar: "will not over-write existing file 'j'"
  849. else
  850. cat << \SHAR_EOF > 'j'
  851.  
  852.         j -- Join command
  853.  
  854.                default range           syntax
  855.                          ^,.           j[/string[/]]
  856.  
  857.         "j"  is used to join the specified lines into a single line.
  858.         If "string" is present, it is inserted between each pair  of
  859.         lines  joined.  If not, a single blank is used.  "j/" is the
  860.         same "j//", i.e., no string at all will be inserted  between
  861.         the  joined  lines.   The  "/"  may  be  any character.  The
  862.         trailing delimiter is optional.
  863.  
  864.         To return to the command directory, type "hcomdir."
  865.  
  866. SHAR_EOF
  867. fi
  868. echo shar: "extracting 'k'" '(386 characters)'
  869. if test -f 'k'
  870. then
  871.     echo shar: "will not over-write existing file 'k'"
  872. else
  873. cat << \SHAR_EOF > 'k'
  874.           k    -- marK command
  875.  
  876.                default range           syntax
  877.                          .,.           k<single-character-name>
  878.  
  879.         "k" is used to mark lines with the given name.
  880.         If no character is provided, the current label(s) in the
  881.         range are removed.
  882.  
  883.  
  884.         To return to the command directory, type "hcomdir."
  885.         See also: "hln" and "hn".
  886. SHAR_EOF
  887. fi
  888. echo shar: "extracting 'l'" '(636 characters)'
  889. if test -f 'l'
  890. then
  891.     echo shar: "will not over-write existing file 'l'"
  892. else
  893. cat << \SHAR_EOF > 'l'
  894.  
  895.         l -- Locate command
  896.  
  897.              default range         syntax
  898.                 none                  l
  899.  
  900.         The  Locate  command  places the system name into the status
  901.         line (e.g.  "gatech" or "gitpyr").    This is  so  that  you
  902.         can tell  what  machine you are using from within the screen
  903.         editor.  This is particularly useful for installations  with
  904.         many  machines  that  can run the editor, where you are able
  905.         to  switch back and forth between them, and become  confused
  906.         as to where you are at a given moment.
  907.  
  908.         To return to the command directory, type "hcomdir."
  909.  
  910. SHAR_EOF
  911. fi
  912. echo shar: "extracting 'list'" '(846 characters)'
  913. if test -f 'list'
  914. then
  915.     echo shar: "will not over-write existing file 'list'"
  916. else
  917. cat << \SHAR_EOF > 'list'
  918.                             List (of line numbers)
  919.  
  920.         A  line  number list consists of one or more LINE NUMBERs sep-
  921.         arated with commas or semicolons.  The last two  line  numbers
  922.         in  the  list  usually  specify  the  scope of a command.  For
  923.         example, "5,7d" means delete lines 5 through 7.  If  the  list
  924.         consists  of  only one line number, it is equivalant to a list
  925.         with that line number written twice with a  comma  separating.
  926.         The  sense of the semicolon is to set the CURRENT LINE POINTER
  927.         to the value of the line number before  the  semicolon  before
  928.         evaluating  the  line  number after it, whose value may depend
  929.         upon the value of the current line pointer.
  930.  
  931.         For command syntax, type "hcomsyn".
  932.         For LINE NUMBER syntax and semantics, type "hln".
  933. SHAR_EOF
  934. fi
  935. echo shar: "extracting 'ln'" '(868 characters)'
  936. if test -f 'ln'
  937. then
  938.     echo shar: "will not over-write existing file 'ln'"
  939. else
  940. cat << \SHAR_EOF > 'ln'
  941.                                 Line Numbers
  942.  
  943.         A  LINE  NUMBER  refers  to  a line in the edit buffer.  The
  944.         lines are always numbered sequentially starting with  1.   A
  945.         line  number can be expressed as an integer, as "."  meaning
  946.         the CURRENT LINE, "^" or "-" meaning  the  line  before  the
  947.         current  line,  "$"  meaning  the  last  line,  as a PATTERN
  948.         enclosed in "/" slashes for a forward  scan,  as  a  pattern
  949.         enclosed  in  "?"   question marks for a backward scan, as a
  950.         MARK NAME preceeded by "<" for a backward search or  by  ">"
  951.         for  a forward search, or as any additive combination of the
  952.         above by joining them with operators "+",  "-",  or  nothing
  953.         (meaning "+").
  954.  
  955.         Type "hlist" for line number list syntax.
  956.         For details on scans and searches, type "hscan".
  957.  
  958. SHAR_EOF
  959. fi
  960. echo shar: "extracting 'ln_swt'" '(859 characters)'
  961. if test -f 'ln_swt'
  962. then
  963.     echo shar: "will not over-write existing file 'ln_swt'"
  964. else
  965. cat << \SHAR_EOF > 'ln_swt'
  966.                                 Line Numbers
  967.  
  968.         A  LINE  NUMBER  refers  to  a line in the edit buffer.  The
  969.         lines are always numbered sequentially starting with  1.   A
  970.         line  number can be expressed as an integer, as "."  meaning
  971.         the CURRENT LINE, "^" or "-" meaning  the  line  before  the
  972.         current  line,  "$"  meaning  the  last  line,  as a PATTERN
  973.         enclosed in "/" slashes for a forward  scan,  as  a  pattern
  974.         enclosed  in "\" back slashes for a backward scan, as a MARK
  975.         NAME preceeded by "<" for a backward search or by ">" for  a
  976.         forward  search, or as any additive combination of the above
  977.         by joining them with operators "+", "-", or nothing (meaning
  978.         "+").
  979.  
  980.         Type "hlist" for line number list syntax.
  981.         For details on scans and searches, type "hscan".
  982.  
  983. SHAR_EOF
  984. fi
  985. echo shar: "extracting 'm'" '(314 characters)'
  986. if test -f 'm'
  987. then
  988.     echo shar: "will not over-write existing file 'm'"
  989. else
  990. cat << \SHAR_EOF > 'm'
  991.           m    -- Move command
  992.  
  993.                default range           syntax
  994.                          .,.           from-here,to-here m there
  995.  
  996.         "m" is used to move lines form one place in the buffer to
  997.         another.
  998.  
  999.  
  1000.  
  1001.         To return to the command directory, type "hcomdir."
  1002.         See also   "ht"
  1003. SHAR_EOF
  1004. fi
  1005. echo shar: "extracting 'm_swt'" '(314 characters)'
  1006. if test -f 'm_swt'
  1007. then
  1008.     echo shar: "will not over-write existing file 'm_swt'"
  1009. else
  1010. cat << \SHAR_EOF > 'm_swt'
  1011.           m    -- Move command
  1012.  
  1013.                default range           syntax
  1014.                          .,.           from-here,to-here m there
  1015.  
  1016.         "m" is used to move lines form one place in the buffer to
  1017.         another.
  1018.  
  1019.  
  1020.  
  1021.         To return to the command directory, type "hcomdir."
  1022.         See also   "hy"
  1023. SHAR_EOF
  1024. fi
  1025. echo shar: "extracting 'motion'" '(540 characters)'
  1026. if test -f 'motion'
  1027. then
  1028.     echo shar: "will not over-write existing file 'motion'"
  1029. else
  1030. cat << \SHAR_EOF > 'motion'
  1031.                        Cursor Motion Control Characters
  1032.  
  1033.         Moving the cursor one position:
  1034.           left              CTRL-H
  1035.           right             CTRL-G
  1036.           up                CTRL-D
  1037.           down              CTRL-K
  1038.         Moving to the next tab stop:
  1039.           left              CTRL-E
  1040.           right             CTRL-I
  1041.         Moving all the way to the left:                 CTRL-W
  1042.         Moving to the current right end of the line:    CTRL-O
  1043.  
  1044.         Type "hcc" for general information about control characters.
  1045. SHAR_EOF
  1046. fi
  1047. ######
  1048. echo shar: "done with directory 'se_h' (first part)"
  1049. cd ..
  1050. ######
  1051. exit 0
  1052. #    End of shell archive
  1053.  
  1054.